package com.rc.mutievcharger.dto.ylevcharger.terminal.req;

import com.rc.evcharger.common.annotation.ByteLength;
import com.rc.evcharger.common.base.yl.BaseYlCommand;

/**
 * Create by Yang on 2021/4/26
 * (CMD=5)后台服务器下发充电桩控制命令
 */
public class YlStopCommandReq extends BaseYlCommand {

    @ByteLength(length = 2)
    private String obligate1; //预留字段1
    @ByteLength(length = 2)
    private String obligate2; //预留字段1
    @ByteLength(length = 1)
    private String gunNum; //充电枪口
    @ByteLength(length = 4)
    private String cmdFlag; //命令启始标志 同设置命令
    @ByteLength(length = 1)
    private String cmdCount; //命令个数
    @ByteLength(length = 2)
    private String cmdLength; //命令参数长度
    @ByteLength(length = 1)
    private String cmdResult; //命令执行结果 0 表示成功，其它失败

    public YlStopCommandReq() {
    }

    public YlStopCommandReq(String gunNum, String cmdResult) {
        this.gunNum = gunNum;
        this.cmdResult = cmdResult;
    }

    @Override
    public String getTerminalId() {
        return terminalId;
    }

    @Override
    public void setTerminalId(String terminalId) {
        this.terminalId = terminalId;
    }

    public String getObligate1() {
        return obligate1;
    }

    public void setObligate1(String obligate1) {
        this.obligate1 = obligate1;
    }

    public String getObligate2() {
        return obligate2;
    }

    public void setObligate2(String obligate2) {
        this.obligate2 = obligate2;
    }

    public String getGunNum() {
        return gunNum;
    }

    public void setGunNum(String gunNum) {
        this.gunNum = gunNum;
    }

    public String getCmdFlag() {
        return cmdFlag;
    }

    public void setCmdFlag(String cmdFlag) {
        this.cmdFlag = cmdFlag;
    }

    public String getCmdCount() {
        return cmdCount;
    }

    public void setCmdCount(String cmdCount) {
        this.cmdCount = cmdCount;
    }

    public String getCmdLength() {
        return cmdLength;
    }

    public void setCmdLength(String cmdLength) {
        this.cmdLength = cmdLength;
    }

    public String getCmdResult() {
        return cmdResult;
    }

    public void setCmdResult(String cmdResult) {
        this.cmdResult = cmdResult;
    }
}
